import useAxiosApi from '/@/utils/useAxiosApi';

/**
 * 账号密码登录
 * @returns UseAxiosReturn
 */
export function loginPassword() {
  return useAxiosApi(`/hbmy_wx/login`, {
    method: 'POST',
    data: { name: '123' },
  });
}

/**
 * 获取用户信息
 * @returns UseAxiosReturn
 */
export function getUserInfo01(userId) {
  return useAxiosApi('/hbmy_wx/sport.ryidLogin', {
    method: 'POST',
    data: { ryid: userId },
  });
}

/**
 * 获取用户信息
 * @returns UseAxiosReturn
 */
export function getUserInfo(userId) {
  return useAxiosApi('/hbmy_wx/sport.tokenLogin', {
    method: 'POST',
    data: { account: userId },
  });
}
